/**
 * 初始化
 * @param {*} props 
 */
export default function (props) {
    let { LinkBillModalAppCode, LinkBillModalPageCode, tableAreaId, tableRenderField } = props;
    props.createUIDom(
        {
            appcode: LinkBillModalAppCode,
            pagecode: LinkBillModalPageCode
        },
        (data) => {
            props.meta.setMeta(data.template);
            // 单据号超链接列
            props.table.setTableRender(tableAreaId, tableRenderField, (text, record, index) => {
                return (<a style={{ cursor: 'pointer' }}
                    onClick={() => {
                        this.onRowDoubleClick.call(this, record, index, this.props);
                    }}> {record[tableRenderField].value} </ a>
                )
            })
        }
    )
}
